
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'

//----------------------自己写的页面--------------------------
import Department from './views/org/Department.vue'
import Novel from './views/org/Novel.vue'
import Journal from './views/org/Journal.vue'
import Movie from './views/org/Movie.vue'
import Picture from './views/org/Picture.vue'
import User from './views/org/User.vue'
import Writer from './views/org/Writer.vue'
import Login from './views/Login.vue'
//----------------------------------------------------------

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
      path: '/',
      component: Home,
      name: 'Charts',
      iconCls: 'fa fa-bar-chart',
      leaf: true,//只有一个节点
      children: [
        { path: '/echarts', component: echarts, name: 'echarts' }
      ]
    },
    {
        path: '/',
        component: Home,
        name: '组织机构',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/department', component: Department, name: '部门管理'},
            { path: '/user', component: User, name: '用户管理'},
            { path: '/department', component: Department, name: '权限管理'},
        ]
    },
    {
        path: '/',
        component: Home,
        name: '星选服务',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/novel', component: Novel, name: '小说管理'},
            { path: '/writer', component: Writer, name: '作家管理'},
            { path: '/movie', component: Movie, name: '电影管理'},
            { path: '/picture', component: Picture, name: '演员写真'},
        ]
    },
    {
        path: '/',
        component: Home,
        name: '日志管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/journal', component: Journal, name: '日志管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '',
        iconCls: 'fa fa-address-card',
        leaf: true,//只有一个节点
        children: [
            { path: '/page6', component: Page6, name: '究极' }
        ]
    },

    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;
